package com.tim.spring.aop.aspect;

import org.aspectj.lang.annotation.AfterThrowing;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;

@Aspect
public class AfterThrowingExample {
	@AfterThrowing(throwing="ex")
	@Pointcut("execution (* *.display(..))")
	public void afterThrowingExample(Exception ex) {
		System.out.println("This is in AfterThrowing.afterThrowing: " + ex.getMessage());
	}
}
